package com.authine.cloudpivot.common.extension.client.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Transient;
import java.util.List;

/**
 * 部门数据传输对象
 *
 * @auther: zhangjie
 * @date: 2020/4/23 11:01
 */
@Getter
@Setter
@ToString
public class DepartmentDTO extends BaseDTO {

    private static final long serialVersionUID = -7101732955474725790L;

    private String name;

    private String parentId;

    private Long sortKey;

    /**
     * transfer data don't set val
     */
    @Transient
    private List<DepartmentDTO> children;

}
